package com.hushao.aimi.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @description: 商品规格
 * @author: 胡少
 * @create: 2018-06-06 17:06
 **/
@Data
public class ProductSpecVo {
    private String id;

    @ApiModelProperty("规格名称")
    private String name;

    @ApiModelProperty("规格图片")
    private String image;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("库存")
    private Integer stock;

    protected ProductSpecVo(){}

    public ProductSpecVo(String id, String name, String image, BigDecimal price) {
        this.id = id;
        this.name = name;
        this.image = image;
        this.price = price;
    }

    public ProductSpecVo(String id, String name, String image, BigDecimal price, Integer stock) {
        this.id = id;
        this.name = name;
        this.image = image;
        this.price = price;
        this.stock = stock;
    }
}
